//
//  TempViewController.swift
//  wbxm
//
//  Created by apple on 15/12/23.
//  Copyright © 2015年 apple. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
 
        title = "\(navigationController?.childViewControllers.count ?? 0)个控制器"
        

         view.backgroundColor = UIColor.whiteColor()
        
        //设置右边的导航按钮
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", style: UIBarButtonItemStyle.Plain, target: self, action: "PUSH")
    
    }
    
    @objc private func PUSH() {
    
        let temp = TempViewController()
        navigationController?.pushViewController(temp, animated: true)
    
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    
}
